import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

export function organizationTree (data) {
  return request({
    url: servicePath.userServer + '/organization/getTree',
    method: 'post',
    data
  })
}
export function getUserList (data) {
  return request({
    url: servicePath.userServer + '/userInfo/getUserList',
    method: 'post',
    data
  })
}
export function addOrUpd (data) {
  return request({
    url: servicePath.userServer + '/userInfo/addOrUpd',
    headers: {
      showLoading: true
    },
    method: 'post',
    data
  })
}
export function userdelete (params) {
  return request({
    url: servicePath.userServer + '/userInfo/delete',
    headers: {
      showLoading: true
    },
    method: 'post',
    params
  })
}
export function updSync (params) {
  return request({
    url: servicePath.userServer + '/userInfo/updSync',
    headers: {
      showLoading: true
    },
    method: 'post',
    params
  })
}
